package first;

public class Main {
    public static void main(String[] args) {
        double[] athletes = {12.83, 14.5, 16.8, 15.7, 16.1};
        double[] students = {86.5, 79, 90.2, 95.6, 82.1};
        Gymnastics gymnastics = new Gymnastics(athletes);
        School school = new School(students);
        System.out.println("体操选手最后得分：" + String.format("%.3f", gymnastics.work()));
        System.out.println("班级考试平均分数：" + String.format("%.2f", school.work()));
    }
}
